<%@page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if(session.getAttribute("admin")==null) {
	response.sendRedirect(basePath + "admin/login.html");
}
%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<link href="<%=basePath%>images/favicon1.ico" rel="Shortcut Icon"/>
	<link rel="Bookmark" href="<%=basePath%>images/favicon1.ico"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<title>Background Management System -- R&R Industrial Limited</title>
	<script type="text/javascript" src="<%=basePath%>share/js/json2.js"></script>
	<link rel="stylesheet" href="<%=basePath%>ext/resources/css/ext-all.css" type="text/css"/>
	<link rel="stylesheet" href="<%=basePath%>admin/css/index_all.css" type="text/css"/>
	<script type="text/javascript" src="<%=basePath%>ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=basePath%>ext/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath%>ext/ext-lang-zh_CN.js"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/js/Utils.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/ThemeChange.js"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/ChromeDateFieldBugFix.js"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/StarHtmleditor.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/TooltipTextField.js"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/ToolButton.js"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/product/AddProduct.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/product/ModifyProduct.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/product/ViewProduct.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/product/ProductList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/equipment/AddEquipment.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/equipment/ModifyEquipment.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/equipment/ViewEquipment.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/equipment/EquipmentList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/news/AddNews.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/news/ModifyNews.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/news/ViewNews.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/news/NewsList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/link/AddLink.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/link/ModifyLink.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/link/ViewLink.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/link/LinkList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/online/AddOnline.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/online/ModifyOnline.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/online/ViewOnline.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/online/OnlineList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/corpration/ModifyCorpration.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/corpration/ViewCorpration.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/corpration/CorprationList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/category/AddCategory.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/category/ModifyCategory.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/category/ViewCategory.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/category/CategoryList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/category/PreDeleteCategory.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/feedback/ViewFeedback.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/feedback/FeedbackList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/recycle/RecycleList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleCategoryList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleEquipmentList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleFeedbackList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleNewsList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleProductList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleLinkList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleOnlineList.js" charset="utf-8"></script>
	
	<script type="text/javascript" src="<%=basePath%>admin/welcome/HelpIndex.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/welcome/HelpRecycle.js" charset="utf-8"></script>
	
<s:if test="#session.s == 'true'">
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleAdminList4Super.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/admin/AddAdmin.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/admin/AdminList4Super.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/admin/ModifyAdmin.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/logger/LoggerList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/logger/ViewLogger.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/admin_layout4super.js"></script>
</s:if> <s:else>
	<script type="text/javascript" src="<%=basePath%>admin/recycle/VisibleAdminList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/admin/AdminList.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=basePath%>admin/js/admin_layout.js"></script>
</s:else>
	<style type="text/css">
		#loading-mask{
			position:absolute;
			left:0;
			top:0;
		    width:100%;
		    height:100%;
		    z-index:20000;
		    background-color:white;
		}
		#loading{
		    position:absolute;
		    left:45%;
		    top:40%;
		    padding:2px;
		    z-index:20001;
		    height:auto;
		}
		#loading img {
		    margin-bottom:5px;
		}
		#loading .loading-indicator{
		    background:white;
		    color:#555;
		    font:bold 13px tahoma,arial,helvetica;
		    padding:10px;
		    margin:0;
		    text-align:center;
		    height:auto;
		}
		.north {
		   	background:url("<%=basePath%>admin/images/north_bg.png") repeat-x;
			position:relative;
		   	height:100%;
		   	width:100%;
		}
		.toolBoxItemTopest {
			background-color: #E2F3FF;
			border-left-color: #99BBE8;
			border-right-color: #99BBE8;
			border-top-color: #99BBE8;
			border-left-width: 1px;
			border-right-width: 1px;
			border-top-width: 1px;
		}
		.toolBoxItem {
			background-color: #E2F3FF;
			border-left-width: 1px;
			border-right-width: 1px;
			border-left-color: #99BBE8;
			border-right-color: #99BBE8;
		}
		#logoImg {
			position: relative;
			top: 40px;
		}
		.adminUsername {
			text-decoration: underline;
			color:green;
		}
	</style>
	</head>
	<body style="overflow:hidden">
		<a href=<%=basePath%> id=basePath></a>
		<div id="loading-mask"></div>
		<div id="loading">
			<div class="loading-indicator">
				<img src="<%=basePath%>admin/images/loading.gif"/>
			</div>
		</div>
		
		<div id="north" class="north">
			<img src="<%=basePath%>share/logo.png" id="logoImg">
			<div id="themesChange">
				<div id="hr_panel"></div>
			</div>
			<div id="admin">admin username:
				<a class='adminUsername'><s:property value="#session.admin.username"/></a>
			</div>
		</div>

		<div id="south">
			<a>dfsdfsdf</a>
		</div>
	</body>
</html>
